aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/article/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-06 19:27:45 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-06 19:30:06 +0100
commit722ec20bad64d8c69b173c163011d37ad0b55591 (patch)
tree0470e54f758d9383fff3fdb4c9b685faa3bde6ae /src/pages/article/[slug].tsx
parent1494985a636fe22417615648062f17bc82c35655 (diff)
chore: move Main grid to its children
This way I can use full width background for some blocks.
Diffstat (limited to 'src/pages/article/[slug].tsx')
-rw-r--r--src/pages/article/[slug].tsx14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx
index e8df85e..e906d12 100644
--- a/src/pages/article/[slug].tsx
+++ b/src/pages/article/[slug].tsx
@@ -18,6 +18,7 @@ import { useRouter } from 'next/router';
import Prism from 'prismjs';
import { ParsedUrlQuery } from 'querystring';
import { useEffect } from 'react';
+import styles from '@styles/pages/Page.module.scss';
const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
const {
@@ -57,17 +58,20 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
<title>{seo.title}</title>
<meta name="description" content={seo.metaDesc} />
</Head>
- <article>
+ <article className={styles.article}>
<PostHeader intro={intro} meta={meta} title={title} />
- <aside>
+ <aside className={styles.toc}>
<ToC />
</aside>
- <div dangerouslySetInnerHTML={{ __html: content }}></div>
+ <div
+ className={styles.body}
+ dangerouslySetInnerHTML={{ __html: content }}
+ ></div>
<PostFooter subjects={subjects} />
- <aside>
+ <aside className={styles.aside}>
<Sharing title={title} excerpt={intro} />
</aside>
- <section>
+ <section className={styles.comments}>
<h2>{t`Comments`}</h2>
<CommentsList comments={comments} />
<h2>{t`Leave a comment`}</h2>